package com.xnfh.home.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.xnfh.common.bean.WeatherWarningBean
import com.xnfh.home.R
import com.xnfh.home.databinding.ItemWeatherWarningBinding

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/11/13 13:54
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/11/13 13:54
 * @UpdateRemark: 更新说明
 */
class WeatherWarningAdapter :
    BaseQuickAdapter<WeatherWarningBean, BaseDataBindingHolder<ItemWeatherWarningBinding>>(
        R.layout.item_weather_warning
    ) {
    override fun convert(holder: BaseDataBindingHolder<ItemWeatherWarningBinding>, item: WeatherWarningBean) {
        holder.setText(R.id.item_weather_title,item.disease_name+item.leval)
        holder.setText(R.id.item_weather_data,item.time)
        holder.setText(R.id.item_weather_connect,item.content)
    }
}